package DAO;

import javax.persistence.EntityManager;

import Entity.Quote;

public class QuoteDAO {

	private QuoteDAO() {
	}

	// Quote
	public static void create(Quote nuevo, EntityManager em) {
		em.persist(nuevo);
	}

	public static Quote read(Quote par, EntityManager em) {
		return em.find(par.getClass(), par.getId());
	}

	public static void update(Quote old, EntityManager em) {
		em.merge(old);
	}

	public static void delete(Quote market, EntityManager em) {
		em.remove(market);
	}

}
